package com.starlink.model.dtomapper;

import com.starlink.model.domain.SchoolbagGroupBagDO;
import com.starlink.model.request.SchoolbagGroupBagRequest;
import com.starlink.model.vo.SchoolbagGroupBagVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface SchoolbagGroupBagDtoMapper {

    SchoolbagGroupBagDtoMapper INSTANCE = Mappers.getMapper(SchoolbagGroupBagDtoMapper.class);

    /**
    * DO to VO
    * @param schoolbagGroupBagDO
    * @return
    */
    SchoolbagGroupBagVO do2VO(SchoolbagGroupBagDO schoolbagGroupBagDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    SchoolbagGroupBagDO request2DO(SchoolbagGroupBagRequest request);
}
